package com.dg.cuckoo.admin.action.integratedQuery;

import com.dg.cuckoo.admin.service.ProscheduleService;
import com.dg.cuckoo.admin.vo.ProscheduleVo;
import com.dg.cuckoo.core.BaseController;
import com.dg.cuckoo.core.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 综合查询-项目支付进度
 */
@RestController
@RequestMapping("/integratedQuery/proschedule")
public class Proschedule extends BaseController {

    @Autowired
    private ProscheduleService service;

    @PostMapping("select")
    public JsonResult<List<ProscheduleVo>> select(String id){
        List<ProscheduleVo> data = service.select(id);
        return new JsonResult<>(OK,data);
    }


}
